package cykbt.core;

import java.util.ArrayList;
import java.util.List;

public class Cell {
	/**
	 * représente une liste de symboles
	 */
	protected List<Symbol> symbols;

	public Cell() {
		this.symbols = new ArrayList<Symbol>();
	}

	public void add(List<Symbol> symbols) {
		this.symbols.addAll(symbols);
	}

	public String toString() {
		return symbols.toString();
	}

	public List<Symbol> getSymbols() {
		return this.symbols;
	}

	public boolean isFinal(ChomskyGrammar cg) {
		return this.symbols.contains(cg.getAxiome());
	}
}
